package com.作业.Day4;

import java.util.Scanner;

public class Homework6 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("输入java成绩:");
        int java= scanner.nextInt();
        System.out.print("输入C#成绩:");
        int  c= scanner.nextInt();
        System.out.print("输入DB成绩:");
        int DB = scanner.nextInt();
        Computer computer = new Computer();
        computer.computerNum(java,c,DB);
    }
}
class Computer{
    public void computerNum(int a,int b,int c){
        System.out.println("总成绩"+(a+b+c));
        System.out.println("总成绩"+(a+b+c)/3);
        }

}
